package com.kunchi.isb.base.api;


public class ISBClientFactory {
    private static ISBClientFactory instance;
    private ISBClientFactory(){}

    public static void init( String host, String port){
        ISBClientFactory factory = new ISBClientFactory();
        factory.host = host;
        factory.port = port;
        instance = factory;
    }


    public static ISBClientFactory getInstance(){

        return instance;
    }

    private String host;

    private String port;



    public ISBApi buildCilent( String serviceName, String servicePath) {
        ISBApi isbApi = new ISBApi();
        isbApi.setHost(this.host);
        isbApi.setPort(this.port);
        isbApi.setServiceName(serviceName);
        isbApi.setServicePath(servicePath);
        return isbApi;
    }

    public static void main (String [] args){

        String host = "";
        String port = "";
        String serviceName = "";
        String servicePath = "";

        ISBClientFactory.init(  host,  port);

        ISBClientFactory.getInstance().buildCilent(serviceName,servicePath);

    }
}
